翻訳と辞書
Words near each other
・ MultiTail
・ Multitap
・ Multitape Turing machine
・ Multitaper
・ Multitarget stool DNA screening test
・ Multitasker
・ Multitasking (disambiguation)
・ Multiteam system
・ Multiteatro
・ Multitenancy
・ Multitheoretical psychotherapy
・ Multithreading
・ Multithreading (computer architecture)
・ MultiThématiques
・ Multitier architecture
Multiton pattern
・ Multitone Records
・ Multitrack recording
・ Multitrait-multimethod matrix
・ Multitran
・ Multitree
・ Multitronic
・ Multituberculata
・ Multitubulatina
・ Multitude
・ Multitude Media
・ Multitudes
・ Multiunit auction
・ Multiuse Model View
・ Multiuser detection


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Multiton pattern : ウィキペディア英語版
Multiton pattern

In software engineering, the multiton pattern is a design pattern similar to the singleton, which allows only one instance of a class to be created. The multiton pattern expands on the singleton concept to manage a map of named instances as key-value pairs.
Rather than having a single instance ''per application'' (e.g. the object in the Java programming language) the multiton pattern instead ensures a single instance ''per key''.
Most people and textbooks consider this a singleton pattern. For example, multiton does not explicitly appear in the highly regarded object-oriented programming text book ''Design Patterns'' (it appears as a more flexible approach named registry of singletons).
== Description ==
While it may appear that the multiton is no more than a simple hash table with synchronized access there are two important distinctions. First, the multiton does not allow clients to add mappings. Secondly, the multiton never returns a null or empty reference; instead, it creates and stores a multiton instance on the first request with the associated key. Subsequent requests with the same key return the original instance. A hash table is merely an implementation detail and not the only possible approach. The pattern simplifies retrieval of shared objects in an application.
Since the object pool is created only once, being a member associated with the class (instead of the instance), the multiton retains its flat behavior rather than evolving into a tree structure.
The multiton is unique in that it provides centralized access to a single directory (i.e. all keys are in the same namespace, ''per se'') of multitons, where each multiton instance in the pool may exist having its own state. In this manner, the pattern advocates indexed storage of essential objects for the system (such as would be provided by an LDAP system, for example). However, a multiton is limited to wide use by a single system rather than a myriad of distributed systems.

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Multiton pattern」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.